import request from '@/utils/request'

export function selectsome() {
  return request({
    url: '/selectsome',
    method: 'get',
  })
};
export function SelsomeURC() {
    return request({
      url: '/SelsomeURC',
      method: 'get',
    })
  };

  export function SelectTalent() {
    return request({
      url: '/SelectTalent',
      method: 'get',
    })
  };
  
  export function AddTalent(jobName,agency,shortage,submitter) {
    return request({
      url: '/AddTalent',
      method: 'post',
      params:{
        positionName:jobName,
        department:agency,
        shortageOfPopulation:shortage,
        addPeople:submitter

      }
    })
  };
  export function UpdataTalent(talentId,phone_one,phone_two,) {
    return request({
      url: '/UpdataTalent',
      method: 'post',
      params:{
        talentId:talentId,
        shortageOfPopulation:phone_one,
        modifier:phone_two,
      }
    })
  };
  export function DeleteTalent(delID,deluser) {
    return request({
      url: '/DeleteTalent',
      method: 'post',
      params:{
        talentId:delID,  
        deleterPeople:deluser,
      }
    })
  };
  export function SelectURC() {
    return request({
      url: '/SelectURC',
      method: 'get',
     
    })
  };
  export function AddResume(username,sex,positionName,Idcard,source,phone,workExperience,classify) {
    return request({
      url: '/AddResume',
      method: 'post',
      params:{
        name:username,
        sex:sex,
        positionName:positionName,
        idcard:Idcard,
        source:source,
        phone:phone,
        workExperience:workExperience,
        classify:classify
      }
     
    })
  };
  Updatepersonnel
  export function Updatepersonnel(ID,user) {
    return request({
      url: '/Updatepersonnel',
      method: 'post',
      params:{
        id:ID,
        personnelName:user
      }
     
    })
  };Updatetechnical
  export function Updatetechnical(ID,user) {
    return request({
      url: '/Updatetechnical',
      method: 'post',
      params:{
        id:ID,
        technicalname:user
      }
     
    })
  };
  export function interviewstatus(ID,user,enroll) {
    return request({
      url: '/interviewstatus',
      method: 'post',
      params:{
        id:ID,
        admissionName:user,
        admission:enroll
      }
     
    })
  };
  interviewstatus
